package financier.jfz.com.babycare.bean;
import java.lang.reflect.Field;

public  class TableRowData {
    public TableItemData lab0, lab1, lab2, lab3, lab4, lab5,
                lab6, lab7, lab8, lab9, lab10, lab11,
                lab12, lab13, lab14, lab15;
    public String id;
    public String customerId;
    public static class TableItemData {
        public String labData = "666666";
        public String key = "";

        public TableItemData(){}

    }
    public TableItemData getData(int index){
        String fString="lab"+index;
        try {
            Field field= getClass().getDeclaredField(fString);
            field.setAccessible(true);
           return (TableItemData) field.get(this);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
    public void setData(TableItemData data,int index){
        String fString="lab"+index;
        try {
          Field field= getClass().getDeclaredField(fString);
            field.setAccessible(true);
            field.set(this,data);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}